var express = require('express');
var router = express.Router();


//引入控制器
const { getAllStudents,addStudent,updateStudents,searchStudents,getStudentById} = require('../controllers/studentsController');

router.get('/',getAllStudents);
router.get('/:_id',getStudentById);
router.put('/',updateStudents);
router.post('/',addStudent);
router.post('/searchStudents',searchStudents);
module.exports = router;

